import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SWrestleMyInfo
    
    export  class SWrestleMyInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SWrestleMyInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeInt(this.mark);
            arg1.writeInt(this.winNum);
            arg1.writeInt(this.loseNum);
            arg1.writeInt(this.todayNum);
            arg1.writeInt(this.dailyNum);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.rankCross);
            arg1.writeBool(this.isNewCross);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.mark = arg1.readInt();
            this.winNum = arg1.readInt();
            this.loseNum = arg1.readInt();
            this.todayNum = arg1.readInt();
            this.dailyNum = arg1.readInt();
            this.rank = arg1.readInt();
            this.rankCross = arg1.readInt();
            this.isNewCross = arg1.readBool();
            return;
        }

        public /* const */_type: int=601;

        public /* var */entityId: SEntityId;

        public /* var */mark: int;

        public /* var */winNum: int;

        public /* var */loseNum: int;

        public /* var */todayNum: int;

        public /* var */dailyNum: int;

        public /* var */rank: int;

        public /* var */rankCross: int;

        public /* var */isNewCross: Boolean;

        public static /* var */_regist: SWrestleMyInfo;
    }

            SWrestleMyInfo._regist = new SWrestleMyInfo(true);
        